package cn.tedu.trading_platform.pojo.dto.adminDTO;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
@Data
public class UserStatusUpdateParam {
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @NotNull(message = "用户状态不能为空")
    @Min(value = 1, message = "用户状态必须为1或2")
    @Max(value = 2, message = "用户状态必须为1或2")
    private Integer userStatus;
}
